filechooser: Prevent a crash
authorMatthias Clasen <mclasen@redhat.com>
Sat, 12 Sep 2020 14:40:13 +0000 (10:40 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 12 Sep 2020 14:40:13 +0000 (10:40 -0400)
commit756c52ef08a3c4cc680f44caf93a6b3c2a44bb56
treee647f28183bec6f0f3654e097474e42ae466f5ab
parent7ee3439522b2a9fdd84a722e5aefe8ce381c14cc
filechooser: Prevent a crash

With csd, we are handling external widgets when
there is an entry in the headerbar. Use a weak ref
to prevent that pointer from going stale. This fixes
a crash when cancelling a save dialog.

Fixes: #3110
gtk/gtkfilechooserwidget.c